import service from '@/utils/request'

// @Tags ExaSms
// @Summary 创建ExaSms
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ExaSms true "创建ExaSms"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /exaSms/createExaSms [post]
export const createExaSms = (data) => {
  return service({
    url: '/exaSms/createExaSms',
    method: 'post',
    data
  })
}

// @Tags ExaSms
// @Summary 删除ExaSms
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ExaSms true "删除ExaSms"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /exaSms/deleteExaSms [delete]
export const deleteExaSms = (data) => {
  return service({
    url: '/exaSms/deleteExaSms',
    method: 'delete',
    data
  })
}

// @Tags ExaSms
// @Summary 删除ExaSms
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ExaSms"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /exaSms/deleteExaSms [delete]
export const deleteExaSmsByIds = (data) => {
  return service({
    url: '/exaSms/deleteExaSmsByIds',
    method: 'delete',
    data
  })
}

// @Tags ExaSms
// @Summary 更新ExaSms
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ExaSms true "更新ExaSms"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /exaSms/updateExaSms [put]
export const updateExaSms = (data) => {
  return service({
    url: '/exaSms/updateExaSms',
    method: 'put',
    data
  })
}

// @Tags ExaSms
// @Summary 用id查询ExaSms
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ExaSms true "用id查询ExaSms"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /exaSms/findExaSms [get]
export const findExaSms = (params) => {
  return service({
    url: '/exaSms/findExaSms',
    method: 'get',
    params
  })
}

// @Tags ExaSms
// @Summary 分页获取ExaSms列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取ExaSms列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /exaSms/getExaSmsList [get]
export const getExaSmsList = (params) => {
  return service({
    url: '/exaSms/getExaSmsList',
    method: 'get',
    params
  })
}
